@import "var";
@import "mixin";

body {
  background-color: $light-grey;
}


/*公共样式*/
.container {
  width: 1240px !important;
  margin: 0 auto;
  box-sizing: border-box;
  position: relative;
}

.main {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
}

.meta {
  font-size: 1.4rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  color: #9a9a9a;


  .ic {
    margin-right: 0.3rem;
    font-size: 1.4rem;

  }


  span {
    display: inline-block;
    padding-right: 2rem;
  }

}

.bg-white {
  background-color: $white !important;
}

.bg-light-grey {
  background-color: $light-grey !important;
}

.d-flex {
  display: flex;
}

.d-none {
  display: none !important;
}

.size-28 {
  font-size: 2.8rem !important;
}

.size-18 {
  font-size: 1.8rem !important;
}

.shadow {
  box-shadow: 0 0 1rem -0.5rem rgb(0, 0, 0 / .1);
}

.btn {
  display: inline-block;
  margin-bottom: 0;
  font-weight: normal;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  touch-action: manipulation;
  cursor: pointer;
  background-image: none;
  border: none;
  padding: 0.75rem 1.2rem;
  font-size: 1.4rem;
  border-radius: 0.4rem;
  user-select: none;
  @include btn-hover($white, 0);
}

.btn + .btn {
  margin-left: 1rem;
}

.pointer {
  cursor: pointer !important;
}

.border-b {
  border-bottom: 0.1rem solid #f6f6f6;
}

.box-left {
  width: 86rem;
}

.box-right {
  width: 36rem;
}

/*定义滚动条高宽及背景 高宽分别对应横竖滚动条的尺寸*/
::-webkit-scrollbar {
  width: 3px;
  height: 3px;
  background-color: #ff0000;
}

/*定义滚动条轨道 内阴影+圆角*/
::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  background-color: #9a9a9a;
}

/*定义滑块 内阴影+圆角*/
::-webkit-scrollbar-thumb {
  border-radius: 50px;
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
  background-color: rgba(69, 128, 216, 0.767);

  &:hover {
    background: rgba(50, 97, 99, 0.397);
  }
}


/*scss语法*/


@for $var from 1 through 5 {
  .mt-#{$var} {
    margin-top: #{$var}rem;
  }
  .mb-#{$var} {
    margin-bottom: #{$var}rem;
  }
  .ml-#{$var} {
    margin-left: #{$var}rem;
  }
  .mr-#{$var} {
    margin-right: #{$var}rem;
  }
}

@each $key, $value in $radius-num {
  .radius-#{$key} {
    border-radius: $value;
  }
}

@each $key, $value in $btn-color {
  .btn-#{$key} {
    background-color: #{$value};
    color: #fff;
    @include btn-hover($value, 6.5%);
  }
}

@each $key, $value in $covid-19-color {
  .color-#{$key} {
    color: $value !important;
  }
}

@each $key, $value in $text-color {
  .text-#{$key} {
    color: $value !important;
  }
}

/*动画*/
@keyframes upbit {
  0% {
    transform: translate3d(0, 30px, 0);
    opacity: 0.3;
  }
  100% {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
}

@keyframes heart {
  from {
    transform: translate(0, 0)
  }
  to {
    transform: translate(0, .189rem)
  }
}

.anim {
  animation-duration: 0.3s;
  animation-fill-mode: both;
}

.anim-upbit {
  animation-name: upbit;
}

